<?php

require_once './gg.php';

$uid = $_REQUEST['uid'];

$sql = "delete from userinfo where uid = $uid";

mysqli_query($conn,$sql);

$rows = mysqli_affected_rows($conn);

$obj = array(
    'code' => 0,
    'msg' => '服务器异常'
);

if($rows > 0){
    $obj = array(
        'code' => 1,
        'msg' => '删除成功'
    );
}

echo json_encode($obj);